package com.ruoyi.activity.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.activity.mapper.ActApplyMapper;
import com.ruoyi.activity.domain.ActApply;
import com.ruoyi.activity.service.IActApplyService;
import com.ruoyi.common.core.text.Convert;

/**
 * 活动申请Service业务层处理
 * 
 * @author YZD
 * @date 2022-07-12
 */
@Service
public class ActApplyServiceImpl implements IActApplyService 
{
    @Autowired
    private ActApplyMapper actApplyMapper;

    /**
     * 查询活动申请
     * 
     * @param id 活动申请ID
     * @return 活动申请
     */
    @Override
    public ActApply selectActApplyById(Long id)
    {
        return actApplyMapper.selectActApplyById(id);
    }

    /**
     * 查询活动申请列表
     * 
     * @param actApply 活动申请
     * @return 活动申请
     */
    @Override
    public List<ActApply> selectActApplyList(ActApply actApply)
    {
        return actApplyMapper.selectActApplyList(actApply);
    }

    /**
     * 新增活动申请
     * 
     * @param actApply 活动申请
     * @return 结果
     */
    @Override
    public int insertActApply(ActApply actApply)
    {
        return actApplyMapper.insertActApply(actApply);
    }

    /**
     * 修改活动申请
     * 
     * @param actApply 活动申请
     * @return 结果
     */
    @Override
    public int updateActApply(ActApply actApply)
    {
        return actApplyMapper.updateActApply(actApply);
    }

    /**
     * 删除活动申请对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteActApplyByIds(String ids)
    {
        return actApplyMapper.deleteActApplyByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除活动申请信息
     * 
     * @param id 活动申请ID
     * @return 结果
     */
    @Override
    public int deleteActApplyById(Long id)
    {
        return actApplyMapper.deleteActApplyById(id);
    }
}
